package com.sdtv.mediunfusion.utils;

import android.graphics.drawable.GradientDrawable;
import android.view.View;

/**
 * @ProjectName: MediunFusion
 * @Package: com.sdtv.mediunfusion.utils
 * @ClassName: ViewBgUtils
 * @Description: 控制view背景色的工具类
 * @Author: 小郭同学
 * @CreateDate: 2019-07-31 10:20
 * @UpdateRemark: 更新说明
 * @Version: 1.0
 */
public class ViewBgUtils {

    /**
     * 设置view的背景填充色
     * @param view
     * @param color
     */
    public static void setThemeButtonViewBackground(View view, int color) {
        GradientDrawable myGrad = (GradientDrawable) view.getBackground();
        myGrad.setColor(color);
    }

}
